import request from "@/utils/request.js";

// 获得文章分类列表
export function getArticleCategoryList() {
  return request.get("cms/category/list", {
	  visible:true,
	  status:0
  }, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 获得文章列表
export function getArticleList(data) {
  return request.get("cms/article/list", data, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 获得文章分页
export function getArticlePage(data) {
  return request.get("cms/article/page", data, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 获得文章
export function getArticle(id) {
  return request.get("cms/article/get", {
    id
  }, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 增加文章浏览量
export function addArticleBrowseCount(id) {
  return request.get("cms/article/add-browse-count", {
    id
  }, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

